import request from '@/utils/request'
// 获取部门数据
export function getdepartment() {
  return request({
    url: '/company/department'
  })
}
// 删除部门
export function delDepartment(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
// 新增部门
export function AdditionalTeam(data) {
  return request({
    url: `/company/department`,
    method: 'post',
    data
  })
}

// 获取部门 信息 by id
export function getDeparById(id) {
  return request({
    url: `/company/department/${id}`
  })
}

// 编辑部门
export function EditorialDepar(data) {
  return request({
    url: `/company/department/${data.id}`,
    method: 'put',
    data
  })
}

